package com.example.websocket;

enum WebSocketCloseEnum {
    USER_EXIT(1000,"User exit");
    private String reason;

    public String getReason() {
        return reason;
    }

    public int getCode() {
        return code;
    }

    private int code;
    // 构造方法
    private WebSocketCloseEnum(int code,String reason) {
        this.code = code; this.reason = reason;
    }

}
